<!DOCTYPE html>
<html>
<head>
  <title>文件上传下载测试</title>
</head>
<body>
<h2>文件上传</h2>
<form action="upload" method="post" enctype="multipart/form-data">
  <input type="file" name="file" required>
  <button type="submit">上传</button>
</form>

<h2>文件下载</h2>
<form action="file" method="get">
  <input type="text" name="filename" placeholder="输入文件名" required>
  <button type="submit">下载</button>
</form>
</body>
</html>
</html>